package com.yanqu.road.entity.activity.stronghold;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.player.UserBaseInfo;

import java.math.BigInteger;

@FieldTypeAnnotation(tableName = "t_u_stronghold_silver_donate")
public class StrongholdSilverDonate extends DataObject {
    @FieldTypeAnnotation(select = true,update = true, desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(update = true, desc = "联盟id")
    private String unionUid;
    @FieldTypeAnnotation(update = true, desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(desc = "玩家信息")
    private UserBaseInfo userBaseInfo = new UserBaseInfo();
    @FieldTypeAnnotation( desc = "捐献数量")
    private BigInteger num;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public String getUnionUid() {
        return unionUid;
    }

    public void setUnionUid(String unionUid) {
        this.unionUid = unionUid;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public UserBaseInfo getUserBaseInfo() {
        return userBaseInfo;
    }

    public void setUserBaseInfo(UserBaseInfo userBaseInfo) {
        this.userBaseInfo = userBaseInfo;
        setUpdateOption();
    }

    public BigInteger getNum() {
        return num;
    }

    public void setNum(BigInteger num) {
        this.num = num;
        setUpdateOption();
    }
}
